package com.paas.form.entity;

import com.paas.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("form_attribute")
@ApiModel(value="FormAttribute对象", description="")
public class FormAttributeEntity extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "主键id")
	@TableId
	private String id;

	@ApiModelProperty(value = "编码")
	@TableField("code")
	private String code;

	@ApiModelProperty(value = "名称")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "表")
	@TableField("link_table")
	private String linkTable;

	@ApiModelProperty(value = "类型")
	@TableField("type")
	private String type;

	@ApiModelProperty(value = "数据状态")
	@TableField("status")
	private String status;

	@ApiModelProperty(value = "描述")
	@TableField("remark")
	private String remark;

	@ApiModelProperty(value = "数据类型")
	@TableField("data_type")
	private String dataType;

	@ApiModelProperty(value = "数据长度")
	@TableField("data_length")
	private String dataLength;

	@ApiModelProperty(value = "数据精度")
	@TableField("data_accuracy")
	private String dataAccuracy;

	@ApiModelProperty(value = "是否主键")
	@TableField("is_primary_key")
	private String isPrimaryKey;

	@ApiModelProperty(value = "修改人id")
	@TableField("modify_id")
	private String modifyId;

	@ApiModelProperty(value = "所属视图id")
	@TableField("view_id")
	private String viewId;


	@ApiModelProperty(value = "对应字段")
	@TableField("field")
	private String field;

	@ApiModelProperty(value = "是否可为空")
	@TableField("can_null")
	private String canNull;

	@ApiModelProperty(value = "是否唯一")
	@TableField("is_only")
	private String isOnly;

	@ApiModelProperty(value = "查询条件")
	@TableField("query_item")
	private String queryItem;

	@ApiModelProperty(value = "列表显示")
	@TableField("list_view")
	private String listView;

	@ApiModelProperty(value = "开启相似度")
	@TableField("open_similar")
	private String openSimilar;


	@ApiModelProperty(value = "编辑显示")
	@TableField("edit_view")
	private String editView;

	@ApiModelProperty(value = "脱敏规则")
	@TableField("desensitization_rule")
	private String desensitizationRule;


	@ApiModelProperty(value = "正则规则")
	@TableField("regular_rule")
	private String regularRule;


	@ApiModelProperty(value = "参考类型")
	@TableField("reference_type")
	private String referenceType;

	@ApiModelProperty(value = "参考数据")
	@TableField("reference_data")
	private String referenceData;

	@ApiModelProperty(value = "显示顺序")
	@TableField("view_sort")
	private String viewSort;


	@ApiModelProperty(value = "用于编码")
	@TableField("code_use")
	private String codeUse;


	@ApiModelProperty(value = "用于编码的别名")
	@TableField("code_use_alias")
	private String codeUseAlias;



}